package com.Tank.draw;

public class Bomb {
    int x, y;//炸弹坐标
    int life = 9;//炸弹生命周期
    boolean isLive = true;

    public Bomb(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public void lifeDown() {//配合图片爆炸效果
        if (life < 0) {
            isLive = false;
        } else {
            life--;
        }
    }
}